package com.cn.wanxi.thread.join;
public class ThreadTwo extends Thread {
    public void run() {
        System.out.println("线程2开始跑");
        ThreadThree threadThree = new ThreadThree(this);
        threadThree.start();
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("线程2结束跑");
    }
}